<script setup>
import { reactive } from 'vue';


let array = reactive(['durant', 'kobe', 'james', 'curry'])

</script>

<template>
    <ul>
        <li v-for="item in array">{{ item }}</li>
    </ul>

    <ul>
        <li v-for="(item, index) in array">{{ index }} - {{ item }}</li>
    </ul>
</template>

<style scoped></style>